import { ConfigService } from "@nestjs/config"

export const emailConfig = {
  useFactory: (configService: ConfigService) => ({
    host: configService.get("EMAIL_HOST"),
    port: configService.get("EMAIL_PORT"),
    secure: false,
    auth: {
      user: configService.get("EMAIL_USER"),
      pass: configService.get("EMAIL_CODE"),
    }
  })
}